package com.blackline.UI.MATCH;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Jan, 2013
 * <p>This page is after clicking MATCH > Create Data Source in navigation menu.
 * Please refer to UI.CreateDataSource.png in doc-files.
 */
public class CreateDataSource {
	
	/**
	 * Maximize window icon<br>
	 * This element seems in "CreateDataSourceSubpage", but in fact, in this page.
	 */
	@FindBy (xpath = "//span[text()='Maximize']")
	public WebElement Maximize_Window_icon;
	
	/**
	 * Restore window icon<br>
	 * This element seems in "CreateDataSourceSubpage", but in fact, in this page.
	 */
	@FindBy (linkText = "Restore")
	public WebElement Restore_Window_icon;
	
	/**
	 * Import File text field. (The common operation to it is clicking "Browse" button, and then select a file from OS.)
	 * In our script, we will set its text directly.
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_oFile")
	public WebElement Import_File_textField;
	
	/**
	 * Create Data Source button
	 */
	@FindBy(partialLinkText = "Create Data Source")
	public WebElement Create_Data_Source_button;
	
	/**
	 * Import To drop-down list
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_toolbar_i4_ddlTables_Input")
	public WebElement Import_to_dropDownList;
	
	/**
	 * Import Selected button
	 */
	@FindBy(partialLinkText = "Import Selected")
	public WebElement Import_Selected_button;

	/**
	 * Import All button
	 */
	@FindBy(partialLinkText = "Import All")
	public WebElement Import_All_button;
	
	/**
	 * File name text
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_lblFileName")
	public WebElement FileNameText;
	
	/**
	 * Replace
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_btnIReplace")
	public WebElement Replace_icon;
	
	/**
	 * Work Sheets drop down list
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_ddlSheets")
	public WebElement Work_Sheets_dropDownList;
	
	/**
	 * Preview icon
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_btnIPreview")
	public WebElement Preview_icon;
	
	/**
	 * Load icon (following the Import File text field. "preparer" role.)
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_btnILoad")
	public WebElement Load_icon;
	
	/**
	 * Import Success text
	 */
	@FindBy (xpath = "//li[@class='msgTypeSuccess']")
	public WebElement Import_Success_text;
	
	/**
	 * Column select checkbox
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_txnGrid_ctl00_ctl02_ctl01_columnSelectCheckBox")
	public WebElement Column_Select_checkbox;
	
	/**
	 * Page XX text field
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_txnGrid_ctl00_ctl03_ctl01_GoToPageTextBox_text")
	public WebElement Page_XX_textField;
	
	/**
	 * Go button
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_txnGrid_ctl00_ctl03_ctl01_GoToPageLinkButton")
	public WebElement Go_button;
	
	/**
	 * Page Size text field
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_txnGrid_ctl00_ctl03_ctl01_ChangePageSizeTextBox_text")
	public WebElement Page_Size_textField;
	
	/**
	 * Change button
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_txnGrid_ctl00_ctl03_ctl01_ChangePageSizeLinkButton")
	public WebElement Change_button;
	


//	/**
//	 * 
//	 */
//	@FindBy()
//	public WebElement ;

	
	
}
